package com.hand.wfive.dialog

import android.app.Dialog
import android.content.Context
import com.hand.wfive.R
import com.hand.wfive.util.click.singleClick
import kotlinx.android.synthetic.main.dialog_vip_expire.tvPositive

class VipExpireDialog(
    context: Context,
    positiveBg: Int = R.drawable.btn_dialog_positive,
    event: (Int) -> Unit = { println(it) },
) : Dialog(context, R.style.CustomDialog) {
    init {
        setContentView(R.layout.dialog_vip_expire)

        setCancelable(false)
        setCanceledOnTouchOutside(false)

        tvPositive.setBackgroundResource(positiveBg)
        tvPositive.singleClick {
            event(1)
        }
    }
}